import request from '@/utils/request'
export function sendCoupon(data) {
  return request({
    url: '/user/sendCoupon',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//查重订单
export function checkOrder(data) {
  return request({
    url: '/checkOrder/orderList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//改写订单
export function reWriteOrder(data) {
  return request({
    url: '/reWriteOrder/orderList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//会员订单
export function memberOrder(data) {
  return request({
    url: '/vipOrder/orderList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//用户列表
export function userOrderList(data) {
  return request({
    url: '/user/userOrderList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//取消会员
export function cancelVip(data) {
  return request({
    url: '/vipInfo/cancelVip',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//赠送会员天数
export function giveVip(data) {
  return request({
    url: '/vipInfo/giveVip',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//赠送查重优惠券
export function sendCheckCoupon(data) {
  return request({
    url: '/user/giveCheckCoupon',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//赠送改写优惠券
export function sendReWriteCoupon(data) {
  return request({
    url: '/user/sendCoupon',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//改写下载
export function checkDownload(data) {
  return request({
    url: '/checkDownload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//退款
export function oderInfoRefund(data) {
  return request({
    url: '/oderInfoRefund',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//充值订单
export function investInfo(data) {
  return request({
    url: '/reWriteOrder/rewriterPacketOrderInfo',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
//报表
export function statisticsReport(data) {
  return request({
    url: '/user/statisticsReport',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  })
}
